<?php

class Country_Widget_ProfilePhotoController extends Engine_Content_Widget_Abstract
{
  public function indexAction()
  {
    // Don't render this if not authorized
    $viewer = Engine_Api::_()->user()->getViewer();
   /* if( !Engine_Api::_()->core()->hasSubject() ) {
      return $this->setNoRender();
    }
*/
    // Get subject and check auth
    $this->view->subject = $subject = Engine_Api::_()->core()->getSubject('country');
    if( !$subject->getIdentity()) {
      return $this->setNoRender();
    }

  }
}